import request from '@/utils/request'

// 查询采集点用户管理列表
export function listPointUser(query) {
  return request({
    url: '/basic/pointUser/list',
    method: 'get',
    params: query
  })
}

// 查询采集点用户管理详细
export function getPointUser(pointId) {
  return request({
    url: '/basic/pointUser/' + pointId,
    method: 'get'
  })
}

// 新增采集点用户管理
export function addPointUser(data) {
  return request({
    url: '/basic/pointUser',
    method: 'post',
    data: data
  })
}

// 修改采集点用户管理
export function updatePointUser(data) {
  return request({
    url: '/basic/pointUser',
    method: 'put',
    data: data
  })
}

// 删除采集点用户管理
export function delPointUser(pointId) {
  return request({
    url: '/basic/pointUser/' + pointId,
    method: 'delete'
  })
}

// 导出采集点用户管理
export function exportPointUser(query) {
  return request({
    url: '/basic/pointUser/export',
    method: 'get',
    params: query
  })
}